<template>
  <div>
    <h1 @click='add'>{{ count }}</h1>
  </div>
</template>

<!--
<script setup>
-->
<script>
import { ref } from 'vue'
export default {
    setup(){
        let count = ref('1')
        function add() {
            count.value++
        }
        return {
            count,
            add
        }
    }
}

</script>

<style>
    h1 {
        color:red;
    }
</style>